package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YhYinspectionMapper;
import com.ruoyi.system.domain.YhYinspection;
import com.ruoyi.system.service.IYhYinspectionService;

/**
 * 气瓶检测Service业务层处理
 *
 * @author ruoyi
 * @date 2023-02-17
 */
@Service
public class YhYinspectionServiceImpl implements IYhYinspectionService
{
    @Autowired
    private YhYinspectionMapper yhYinspectionMapper;

    /**
     * 查询气瓶检测
     *
     * @param id 气瓶检测主键
     * @return 气瓶检测
     */
    @Override
    public YhYinspection selectYhYinspectionById(Long id)
    {
        return yhYinspectionMapper.selectYhYinspectionById(id);
    }

    /**
     * 查询气瓶检测列表
     *
     * @param yhYinspection 气瓶检测
     * @return 气瓶检测
     */
    @Override
    @DataScope(deptAlias = "yh_yinspection", userAlias = "yh_yinspection")
    public List<YhYinspection> selectYhYinspectionList(YhYinspection yhYinspection)
    {
        return yhYinspectionMapper.selectYhYinspectionList(yhYinspection);
    }

    @Override
    public List<YhYinspection> selectYhYinspectionList1(YhYinspection yhYinspection) {
        return yhYinspectionMapper.selectYhYinspectionList1(yhYinspection);
    }

    @Override
    public YhYinspection selectYhYinspectionBySpect(Long id) {
        return yhYinspectionMapper.selectYhYinspectionById1(id);
    }

    /**
     * 新增气瓶检测
     *
     * @param yhYinspection 气瓶检测
     * @return 结果
     */
    @Override
    public int insertYhYinspection(YhYinspection yhYinspection)
    {
        return yhYinspectionMapper.insertYhYinspection(yhYinspection);
    }

    /**
     * 修改气瓶检测
     *
     * @param yhYinspection 气瓶检测
     * @return 结果
     */
    @Override
    public int updateYhYinspection(YhYinspection yhYinspection)
    {
        return yhYinspectionMapper.updateYhYinspection(yhYinspection);
    }

    /**
     * 批量删除气瓶检测
     *
     * @param ids 需要删除的气瓶检测主键
     * @return 结果
     */
    @Override
    public int deleteYhYinspectionByIds(Long[] ids)
    {
        return yhYinspectionMapper.deleteYhYinspectionByIds(ids);
    }

    /**
     * 删除气瓶检测信息
     *
     * @param id 气瓶检测主键
     * @return 结果
     */
    @Override
    public int deleteYhYinspectionById(Long id)
    {
        return yhYinspectionMapper.deleteYhYinspectionById(id);
    }


}
